package cn.jcet.gumall.product.service;

import cn.jcet.gumall.product.entity.BrandEntity;
import cn.jcet.gumall.product.vo.BrandVo;
import com.baomidou.mybatisplus.extension.service.IService;
import cn.jcet.common.utils.PageUtils;
import cn.jcet.gumall.product.entity.CategoryBrandRelationEntity;

import java.util.List;
import java.util.Map;

/**
 * 品牌分类关联
 *
 * @author coder_yang
 * @email 1546656922@qq.com
 * @date 2020-06-28 19:46:49
 */
public interface CategoryBrandRelationService extends IService<CategoryBrandRelationEntity> {

    PageUtils queryPage(Map<String, Object> params);

    /**
     * 保存品牌名称和分类
     * @param categoryBrandRelation
     */
    void saveDetil(CategoryBrandRelationEntity categoryBrandRelation);

    /**
     * 同步更新
     * @param brandId
     * @param name
     */
    void updateBrand(Long brandId, String name);

    /**
     * 更新
     * @param catId
     * @param name
     */
    void updateCategory(Long catId, String name);

    List<BrandEntity> getBrandsByCatId(Long catId);
}

